'Declaration
Public Overloads Shared Sub Write( _ ByVal severity As LogMessageSeverity, _ ByVal logSystem As String, _ ByVal sourceProvider As IMessageSourceProvider, _ ByVal userName As String, _ ByVal exception As Exception, _ ByVal writeMode As LogWriteMode, _ ByVal detailsXml As String, _ ByVal category As String, _ ByVal caption As String, _ ByVal description As String, _ ByVal ParamArray args() As Object _ )
public static void Write( LogMessageSeverity severity, string logSystem, IMessageSourceProvider sourceProvider, string userName, Exception exception, LogWriteMode writeMode, string detailsXml, string category, string caption, string description, params object[] args )
Parameters
- severity
- The severity enum value of the log message.
- logSystem
- The name of the originating log system (e.g. "Log4Net").
- sourceProvider
- An IMessageSourceProvider object which supplies the source information about this log message.
- userName
- The effective user name associated with the execution task which issued the log message. (If null, Loupe will determine the user name automatically.)
- exception
- An Exception object attached to this log message, or null if none.
- writeMode
- A LogWriteMode enum value indicating whether to simply queue the log message and return quickly, or to wait for the log message to be committed to disk before returning.
- detailsXml
- An XML document (as a string) with extended details about the message.
- category
- The application subsystem or logging category that the log message is associated with, which supports a dot-delimited hierarchy (e.g. the logger name in log4net).
- caption
- A simple single-line message caption. (Will not be processed for formatting.)
- description
- Additional multi-line descriptive message (or may be null) which can be a format string followed by corresponding args.
- args
- A variable number of arguments referenced by the formatted description string (or no arguments to skip formatting).